export class User {
    id: string = "";
    username: string = "";
    password: string = "";
    name: string = "";
    position: string= "";
    annualLeave: number = 0;
    department: string = "";

    constructor(username: string, password: string) {
        this.username = username;
        this.password = password;
    }
}

export class postUser {
    username: string;
    password: string;
    constructor(username: string, password: string) {
      this.username = username;
      this.password = password;
    }
}

class fields {
    username: string = "";
    password: string = "";
    name: string = "";
    position: string = "";
    annualLeave: number = 0;
    department: string = "";
}

export class adminUser {
    pk: string = "";
    fields: fields = new fields();
}

export class changeHoliday {
    annualLeave: number = 0;
    username: string = "";

    constructor(username: string, annualLeave: number) {
        this.username = username;
        this.annualLeave = annualLeave;
    }
}

export class registerUserModel {
    username: string;
    password: string;
    name: string;
    department: string = "";
    position: string;

    constructor(username: string, password: string, name: string, department: string, position: string) {
        this.username = username;
        this.password = password;
        this.name = name;
        this.department = department;
        this.position = position;
    }
}


